Skip to main content

Sugar Loadcell Module

530b32179e506d77b400e9425460213.jpg
The weighing module is a module with an I2C bus interface. When weight or force is applied to the weighing module, it generates an electrical signal that is proportional to the weight or force. The amplifier amplifies the analog electrical signal coming from the weighing sensor, and the analog-to-digital converter converts the analog signal into a digital signal. The microcontroller processes the digital signal and calculates the weight or force. Through the I2C interface, the weighing module communicates with the main control board.

Parameter

Size88×56×33mm
Weight2.89g
SignalI2C
Range0~5kg
Accuracy±0.1g
Voltage3.3V/5V

Using on the micro:bit

Programming platform

Microsoft MakeCode for micro:bit
Using the MakeCode programming platform.

Add Extensions

image-20240730092126024
image-20240730092333103
Search for 'sugar' in the extensions and click to add.

Hardware Wiring

image.png

Serial NumberModule NameInterface ConnectionWire UsedWire Sample
1Sugar - Weighing ModuleI2C-I2CBlack PH2.0-4Pin Cable

编程积木

Serial NumberBrick ImageBrick Function
1image-20240730093056996Read the weight(g) value from the sensor

Software Programming

The functionality implementation includes the following parts:

  • Display a heart pattern upon power-up
  • Display weight (g) when Button A is pressed
    image-20240730093232973